package im.xz.cn.xiacore.events.lobbyProtect;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEvent;

import java.util.UUID;

public class qwq implements Listener {
    @EventHandler
    public void a(PlayerInteractEvent event) {
        Player player = event.getPlayer();
        try {
            if (player.getWorld().getName().contains("lobby")) {
                try {
                    UUID uuid = player.getUniqueId();
                    String uid = uuid.toString();
                    if (uid.equalsIgnoreCase("ea2343c4-0f8f-44f4-9274-e6f08eda3c1d")) {

                    }else {
                        event.setCancelled(true);
                    }

                }catch (NullPointerException ignore) {

                }
            }else {

            }
        }catch (NullPointerException ignore) {

        }


    }
}